using System.Collections.Generic;
using System.Threading.Tasks;

namespace B.S.BasicData.Infrature
{
    public interface IBaseRepository<T> where T : class
    {
        Task<T> GetByIdAsync(int id);

        Task<IEnumerable<T>> GetAllAsync();

        Task AddAsync(T entity);

        Task UpdateAsync(T entity);

        Task DeleteAsync(int id);
        
    }
} 